Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add clarifying info on how MF joins works #6690

Merged
merged 13 commits into from
Dec 24, 2024
Merged

Conversation

mirnawong1
Copy link
Contributor

@mirnawong1 mirnawong1 commented Dec 19, 2024

this pr adds more detail about the joins supported by mf. currently it mentions left joins but there's no info on outer joins or semantic valiations. this pr adds more info on the types of joins available, when they're used, semantic validations available, and practical sql examples

raised by internal slack

Resolves #6650


🚀 Deployment available! Here are the direct links to the updated files:

@mirnawong1 mirnawong1 requested a review from a team as a code owner December 19, 2024 11:47
Copy link

vercel bot commented Dec 19, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
docs-getdbt-com ✅ Ready (Inspect) Visit Preview Dec 24, 2024 10:32pm

@github-actions github-actions bot added content Improvements or additions to content Docs team Authored by the Docs team @dbt Labs size: medium This change will take up to a week to address and removed Docs team Authored by the Docs team @dbt Labs labels Dec 19, 2024
@mirnawong1 mirnawong1 changed the title add more detail add clarifying info on how MF joins works Dec 19, 2024
@github-actions github-actions bot added the Docs team Authored by the Docs team @dbt Labs label Dec 20, 2024
Copy link
Collaborator

@runleonarun runleonarun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @mirnawong1, I made some suggestions for simplifying the language a little and possibly moving content if it makes sense!

website/docs/docs/build/join-logic.md Outdated Show resolved Hide resolved
website/docs/docs/build/join-logic.md Outdated Show resolved Hide resolved
website/docs/docs/build/join-logic.md Outdated Show resolved Hide resolved

This table primarily represents left joins unless otherwise specified. For scenarios involving multiple `fct` models, MetricFlow uses full outer joins.

### Explanation of joins
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think these definitions would be helpful to read before the bullets above.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

moved them and consolidated content:
Screenshot 2024-12-24 at 10 19 30

website/docs/docs/build/join-logic.md Outdated Show resolved Hide resolved
website/docs/docs/build/join-logic.md Outdated Show resolved Hide resolved
@mirnawong1
Copy link
Contributor Author

thanks @runleonarun and great flags! have made add'l tweaks and would love a re-review please

Copy link
Collaborator

@runleonarun runleonarun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great!

@runleonarun runleonarun enabled auto-merge (squash) December 24, 2024 22:31
@runleonarun runleonarun merged commit 65a46f1 into current Dec 24, 2024
8 checks passed
@runleonarun runleonarun deleted the update-mf-joins branch December 24, 2024 22:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
content Improvements or additions to content Docs team Authored by the Docs team @dbt Labs size: medium This change will take up to a week to address
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Clarify how MF joins work
2 participants